package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.crm.CrmActivity;
import com.nuoniu.sibanyun.entity.crm.CrmForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 邀约表单 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-09-09
 */
@Component
@Mapper
public interface CrmFormMapper extends BaseMapper<CrmForm> {

    @Update("update crm_form set begin_date=#{startTime},end_date=#{endTime} where activity_id=#{id}")
    void updateByActivityId(CrmActivity crmActivity);
}
